const baseUrl = 'https://abc.gszczn.com:18586' // 服务器地址
export const fetchInitCode = () => {
    fetch(`${baseUrl}/taizhou/session/initCode`).then(response => {
        return response.json()
    }).then(data => {
        return data.initCode
    }).catch(err => {
        console.error({ err })
    })
}
const fetchUserInfo = (requestCode) => {
    fetch(`baseUrl/getUserInfo`, {
        method: 'post',
        body: JSON.stringify({ requestCode })
    }).then(response => {
        return response.json
    }).catch(err => {
        console.error({ err })
    })
}
